package edu.mobbuzz.daf.bean;

import java.io.Serializable;
import java.util.Date;

public class Logs extends BaseBean implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String link;
	private String title;
	private String description;
	private Date date;
	private String url;
	
	private Rss rss;
	
	public String getLink() {
		return link;
	}


	public void setLink(String link) {
		this.link = link;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}


	public String getUrl() {
		url = getRss().getUrl();
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
		getRss().setUrl(url);
	}

	
	public Rss getRss() {
		if(rss==null)
			rss = new Rss();
		return rss;
	}


	public void setRss(Rss rss) {
		this.rss = rss;
	}


	@Override
	protected String getPrimaryKey() {
		// TODO Auto-generated method stub
		return getLink();
	}

}
